public class User {
    String userName;
    String name;
    String  sex;
    String phone;
    String password;
    double money;

    Purchase purchase ;

    public User(String userName, String name, String sex, String phone, String password, double money, Purchase purchase) {
        this.userName = userName;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.password = password;
        this.money = money;
        this.purchase = purchase;
    }
}
